//
//  XYTempViewController.swift
//  01.XinLangWB
//
//  Created by 肖玉东 on 16/4/13.
//  Copyright © 2016年 苏小样. All rights reserved.
//

import UIKit

class XYTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        //设置颜色  页面跳转的时候会有颜色切换 导致卡顿
//        view.backgroundColor = UIColor.whiteColor()
//navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_back_withtext", title: "返回", target: self, action: "back")
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", target: self, action: "push")
    }
//    @objc private func back(){
//        print("back")
//        navigationController?.popViewControllerAnimated(true)
//    }
    @objc private func push(){
        print("push")
        let temp = XYTempViewController()
//        //隐藏底部的标签栏
//        temp.hidesBottomBarWhenPushed = true
        //跳转
        navigationController?.pushViewController(temp, animated: true)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
